<?php
// $Id$

/**
 * Controller_Admin_Default 控制器
 */
class Controller_Admin_Default extends Controller_Abstract
{

	function actionIndex()
	{
		$currentUser = $this->_app->currentUser();
		if(empty($currentUser)){
			return $this->_redirect(url('admin::user/login'));
		}

        $links = Link::findByPosition(Link::POSITION_DASH_BOARD)->order('sort')->getAll();
		$this->_view['links'] = $links;

	}
}


